<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
<link href="${ctx}/js/uploadify/uploadify.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="${ctx}/js/uploadify/jquery-ui.min.js"></script>
<script type="text/javascript" src="${ctx}/js/uploadify/swfobject.js"></script>
<script type="text/javascript" src="${ctx}/js/uploadify/jquery.uploadify.min.js"></script>
<link href="${ctx}/js/uploadify/uploadify.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" language="javascript">
        $(function() {
    		$("#uploadfile").uploadify({
    			'height'        : 30,
    			'swf'           : '${ctx}/js/uploadify/uploadify.swf',
    			'uploader'      : '${ctx}/imp/teacher-data!upload.action',
    			'multi'         : false,
    			'auto'          : true,
    			'fileTypeExts'  : '*.xls',
    			'fileTypeDesc'  : 'EXCEL 97-2003',
    			'fileObjName'   : 'uploadFile',
    			'fileSizeLimit' : '0',
    			'removeCompleted': false,
    			'buttonText'     : '选Excel并上传',
    			'uploadLimit'	: '5',
    		   	  'onUploadComplete'	  : function(file,data){
    		   	   	  document.URL = "teacher-data!input.action";
    		   	   	  }
    		});
        });
 </script>
</head>
<body>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/>导入教师数据</h1>
<fieldset class="fs_ys" style="width: 600px">
<legend>从教务处数据库读取</legend>
<input type="button" value="导入"  class="input_ys1"/>
</fieldset>
<br/>
<fieldset class="fs_ys" style="width: 600px">
<legend>从Excel导入</legend>
<input type="file" name="uploadFile" id="uploadfile"/>
</fieldset>
</body>

</html>